-
Home
-
MotoPress Hotel Booking
-
5.2.4 (latest)
-
Code
-
Classes
- DateUtils
| Total Complexity |
77 |
| Dependencies |
4 |
| Dependents |
49 |
| Total lines |
612 |
| Lines of code |
303 |
| Logical lines of code |
171 |
| Comment lines |
218 |
| Methods |
36 |
| Properties |
0 |
Methods 36
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| createQuarterPeriod() |
S |
51 |
7 |
24 |
| createDateTime() |
S |
62 |
4 |
12 |
| createDatePeriod() |
S |
61 |
4 |
11 |
| getPeriodRangeDates() |
S |
62 |
4 |
11 |
| createCheckInDate() |
S |
64 |
4 |
8 |
| createCheckOutDate() |
S |
64 |
4 |
8 |
| isDateInPeriod() |
S |
63 |
4 |
10 |
| wpTimezoneStringPolyfill() |
S |
58 |
3 |
14 |
| getPeriodDates() |
S |
62 |
3 |
12 |
| getPostDateTimeUTC() |
S |
63 |
3 |
11 |
| convertDateFormat() |
S |
67 |
3 |
7 |
| parseTime() |
S |
60 |
2 |
14 |
| nextTimestampWithTime() |
S |
62 |
2 |
11 |
| dateFormatToRegex() |
S |
58 |
1 |
16 |
| getDayByKey() |
S |
74 |
2 |
4 |
| createWeekPeriod() |
S |
65 |
2 |
9 |
| createThirtyDaysPeriod() |
S |
64 |
2 |
10 |
| isPeriodsIntersect() |
S |
70 |
2 |
5 |
| createDateRangeArray() |
S |
66 |
2 |
8 |
| getSiteTimeZone() |
S |
67 |
2 |
8 |
| getSiteTimeZoneString() |
S |
67 |
2 |
8 |
| getDaysList() |
S |
63 |
1 |
11 |
| formatDateDB() |
S |
80 |
1 |
3 |
| formatDateTimeDB() |
S |
80 |
1 |
3 |
| formatDateWPFront() |
S |
78 |
1 |
3 |
| formatTimeWPFront() |
S |
78 |
1 |
3 |
| calcNightsSinceToday() |
S |
69 |
1 |
6 |
| calcNights() |
S |
66 |
1 |
8 |
| extractDayMonthYear() |
S |
69 |
1 |
6 |
| createDayPeriod() |
S |
68 |
1 |
6 |
| createMonthPeriod() |
S |
71 |
1 |
5 |
| createYearPeriod() |
S |
69 |
1 |
6 |
| cloneModify() |
S |
73 |
1 |
5 |
| formatModifiedDate() |
S |
74 |
1 |
4 |
| currentDateWithTime() |
S |
66 |
1 |
8 |
| isDate() |
S |
72 |
1 |
5 |